const BaseService = require("./baseService");
const UserModel = require("../models/userModel");

const userModelInstance = new UserModel();

class UserService extends BaseService {
  constructor() {
    super(userModelInstance);
  }

  async getUserByUsername(username) {
    return await userModelInstance.getUserByUsername(username);
  }
}

module.exports = new UserService();
